// pages/homepage/dietinfo/dietinfo.js
var app=getApp();
Page({
  data: {
    id:'',
  },
  onLoad: function (options) {
    
  },
  onShareAppMessage: function () {
  },
  input:function(e){
    this.setData({
      id:e.detail.value
    })
  },
  formSubmit:function(){
    var that=this;
    wx.navigateTo({
      url: 'dietinfodetail/dietinfodetail?id='+that.data.id
    })
  }
})
